package com.ctrip.cap.device;

import java.util.Set;

/**
 * 
 * main class for phone resouces take and release
 * 
 * @author ltyao
 *
 */
public interface DeviceStore<T extends Device> {

	Device take() throws InterruptedException;

	void put(Device device);

	void shutdown();

	void shutdownForcely();

	/**
	 * internal usage
	 * 
	 * @return
	 */
	Set<T> getDevices();
}
